const Mock = require("mockjs")

Mock.mock('/api/demo', 'get', { 
    code: 200,  
    message: '获取商品列表成功！', 
    "userInfo|6-10":[{  
        "id|+1":1,  //数字从当前数开始后续依次加一 
        "name":"@cname",
        'num|1-10': 0
    }]
})